<extend name="Template/index"/>

<block name="title">资料详情</block>


<block name="resource">
    <link rel="stylesheet" href="__PUBLIC__/home/css/datum.css"/>

</block>

<block name="main">

    <div class="container">

        <div class="row">

            <div class="col-lg-9 col-xs-12" style="margin-top: 10px ">
                <ol class="breadcrumb">
                    <span class="glyphicon glyphicon-home"></span>
                    <li><a href="{:U('Index/index')}">首页</a></li>
                    <li ><a href="{:U('Datum/index')}">资料库</a></li>
                    <li ><a href="javascript:void(0);">分类</a></li>
                    <li ><a href="{:U('Datum/search',array('id'=>$file['file_category_id'],'key'=>'category'))}">{$file.category_name}</a></li>
                    <li class="active">{$file.name}</li>
                </ol>

            <div class="datum-details-main">

                <h3 class="datum-details-title text-center">{$file.name}</h3>

                <div class="datum-details-info clearfix">

                    <div class="datum-details-thumb">

                        <img src="__PUBLIC__/{$file.file_img_url}" >

                        <div class="datum-details-meta">
                            <p>
                                <span class="glyphicon glyphicon-user" title="上传人"> {$file.nickname}
                                </span>
                            </p>

                            <p>
                                <span class="glyphicon glyphicon-download" title="下载量">&nbsp;{$file.f_number}</span>
                            </p>
                            <p>

                                        <span class="glyphicon glyphicon-tags" title="标签"> </span>
                                    <volist name="file.tag" id="tag">
                                        &nbsp;<a rel="tag" href="{:U('Datum/search',array('id'=>$tag['id']))}">{$tag.tag_name}</a>

                                        </volist>


                            </p>
                            <p class="entry-time">
                                <span class="glyphicon glyphicon-time" title="时间">&nbsp;{$file.create_time|date='Y-m-d',###}</span></p>
                            <p>分类：
                                <span class="details-category "><a href="" rel="category tag">{$file.category_name}</a></span>
                            </p>
                            <div class="btn-wrap">
                                <a class="btn datum-details-download btn-lg" href="{:U('Datum/download',array('id'=>$file['file_id']))}">
                                    <span class="glyphicon glyphicon-download-alt">下载</span></a>

                            </div>

                        </div>
                    </div>

                </div>
            </div>

            <div class="datum-details-explain col-lg-9">
               {$file.content}

            </div>

            </div>


            <div class="visible-lg col-lg-3">
                <div class="upload">
                    <a href="{:U('Datum/upload')}">上传资料</a>
                </div>
                <div class="widget">
                   <h2>
                       <span>推荐资料</span>
                   </h2>

                    <ul class="clearfix">
                        <li>
                            <div class="widget-thump">
                                <a href="{:U('Datum/details')}">
                                <img src="__PUBLIC__/home/image/logo.jpg"/>
                                </a>
                                <h4>
                                    <a href="{:U('Datum/details')}">资料名</a>
                                </h4>
                            </div>

                        </li>
                        <li>
                            <div class="widget-thump">
                                <a href="{:U('Datum/details')}">
                                <img src="__PUBLIC__/home/image/logo.jpg"/>
                                </a>
                                <h4>
                                    <a href="{:U('Datum/details')}">资料名</a>
                                </h4>
                            </div>

                        </li>
                        <li>
                            <div class="widget-thump">
                                <a href="{:U('Datum/details')}">
                                <img src="__PUBLIC__/home/image/logo.jpg"/>
                                </a>
                                <h4>
                                    <a href="{:U('Datum/details')}">资料名</a>
                                </h4>
                            </div>

                        </li>

                    </ul>



                </div>


            </div>


        </div>
    </div>





</block>